package com.sixth.health.controller;

import com.sixth.core.entity.PatientResult;
import com.sixth.core.vo.R;
import com.sixth.health.servict.PatientResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: six-hospital-system
 * @description:
 * @author: 朱永奇
 * @create: 2024-09-07 15:50
 **/
@RestController
@RequestMapping("/health/patientResult")
public class PatientResultController {
    @Autowired
    private PatientResultService patientResultService;
    @GetMapping("/jie/{patientId}")
    public R<List<PatientResult>> listR(@PathVariable String patientId){
        return patientResultService.selectAll(patientId);
    }
}
